exec Command And Capture
Execute a command and capture stdout and stderr.
Output redirection and pipes do not appear to be supported, but you can set outStream using Path.readStream (see actions/toolkit#359. However, this will write the command as the first line (see actions/toolkit#649).
To workaround, you can use execShell.
Parameters
command to execute (can include additional args). Must be correctly escaped.
optional arguments for tool. Escaping is handled by the lib.
the working directory
the environment. Uses the current environment by default.
input to write to the subprocess's stdin
whether to hide output
the output stream to use. Defaults to process.stdout.
the error stream to use. Defaults to process.stderr.
whether to skip escaping arguments for Windows
whether to fail if output is send to stderr
whether to not fail the process if the subprocess fails. False by default.
How long in ms to wait for STDIO streams to close after the exit event of the process before terminating
listener for stdout output
listener for stderr output
listener for stdout output, called per line
listener for stderr output, called per line
listener for debug output